<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ page import="java.io.PrintWriter" %>
<%@ page import="java.io.StringWriter" %>
<%@include file="/WEB-INF/views/common/tags.jspf" %>

<%
	String message = (String) request.getAttribute("javax.servlet.error.message");
	pageContext.setAttribute("message", message);
	Integer statusCode = (Integer) request.getAttribute("javax.servlet.error.status_code");
	pageContext.setAttribute("statusCode", statusCode);
	
	String uri = (String) request.getAttribute("javax.servlet.error.request_uri");
	String queryString = request.getQueryString();
	String url = uri + (queryString == null || queryString.length() == 0 ? "" : "?" + queryString);
	pageContext.setAttribute("url", url);
	
	Throwable exception = (Throwable) request.getAttribute("javax.servlet.error.exception");
	request.setAttribute("exception", exception);
%>
<c:if test="${not empty exception}">
    <%
        StringWriter stringWriter = new StringWriter();
        PrintWriter printWriter = new PrintWriter(stringWriter);
        exception.printStackTrace(printWriter);
        pageContext.setAttribute("stackTrace", stringWriter.toString());
    %>
</c:if>


<!DOCTYPE html>
<html lang="zh-cn">
	<head>
		<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
		<meta charset="utf-8" />
		<title>后台登录</title>


		<meta name="description" content="User login page" />
		<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0" />
		<link rel="shortcut icon" href="${ctx}/static/images/favicon.ico" />
		
		<!-- bootstrap & fontawesome -->
		<link rel="stylesheet" href="${ctx}/static/login/css/bootstrap.css" />
		<link rel="stylesheet" href="${ctx}/static/login/css/font-awesome.css" />

		<!-- text fonts -->
		<link rel="stylesheet" href="${ctx}/static/login/css/ace-fonts.css" />

		<!-- ace styles -->
		<link rel="stylesheet" href="${ctx}/static/login/css/ace.css" />

		<!--[if lte IE 9]>
			<link rel="stylesheet" href="${ctx}/static/login/css/ace-part2.css" />
		<![endif]-->
		<link rel="stylesheet" href="${ctx}/static/login/css/ace-rtl.css" />

		<!--[if lte IE 9]>
		  <link rel="stylesheet" href="${ctx}/static/login/css/ace-ie.css" />
		<![endif]-->

		<!-- HTML5 shim and Respond.js IE8 support of HTML5 elements and media queries -->

		<!--[if lt IE 9]>
		<script src="${ctx}/static/login/js/html5shiv.js"></script>
		<script src="${ctx}/static/login/js/respond.js"></script>
		<![endif]-->
		
		<script src="${ctx}/static/js/jquery1x.min.js"></script>
		<script type="text/javascript">
			$(function(){
				$(".btn-detail").click(function() {
			        $(".detail").toggle();
			    });
			});
		</script>
	</head>
	
	<body>
		<!-- ajax layout which only needs content area -->
		<div class="row">
			<div class="col-xs-12">
				<!-- PAGE CONTENT BEGINS -->
		
				<!-- #section:pages/error -->
				<div class="error-container">
					<div class="well">
						<h1 class="grey lighter smaller">
							<span class="blue bigger-125">
								<i class="ace-icon fa fa-random"></i>
								405
							</span>
							系统无法处理该方式的请求
						</h1>
		
						<hr />
		
						<div class="space"></div>
		
						<div>
							<h4 class="lighter smaller"><spring:message code="message.try"/>:</h4> 
		
							<ul class="list-unstyled spaced inline bigger-110 margin-15">
								<li>
									<i class="ace-icon fa fa-hand-o-right blue"></i>
									<a href="javascript:void(0);"><spring:message code="message.faq"/></a>
								</li>
		
								<li>
									<i class="ace-icon fa fa-hand-o-right blue"></i>
									<a href="javascript:void(0);"><spring:message code="message.sendErrorMail"/></a>
								</li>
		
								<li>
									<i class="ace-icon fa fa-hand-o-right blue"></i>
									<a href="javascript:void(0);" class="btn-detail"><spring:message code="message.errorDetail"/></a>
									<span style='color:red;'>【${message}】</span>
									<div class="well well-sm detail" style="display:none;">
										${message}
									</div>
								</li>
							</ul>
						</div>
		
						<hr />
						<div class="space"></div>
						
		
						<div class="center">
							<a href="javascript:history.back()" class="btn btn-grey">
								<i class="ace-icon fa fa-arrow-left"></i>
								返回
							</a>
							
							<a href="javascript:window.parent.location.reload();" class="btn btn-danger">
								<i class="ace-icon fa fa-tachometer"></i>
								刷新,看看是否能访问了
							</a>
						</div>
					</div>
				</div>
		
				<!-- /section:pages/error -->
		
				<!-- PAGE CONTENT ENDS -->
			</div><!-- /.col -->
		</div><!-- /.row -->
	</body>
</html>
